<?php
	session_start();

	if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {
	
?>	
<link rel="stylesheet" type="text/css" href="style.css" />
<div id="wrap">

<div id="header">
<h1><a href="#">IAPL</a></h1>
<h2>It`s A Prof`s Life</h2>
</div>

<div id="menu">
<ul>
	<li><a href="index.php">Home</a></li>
	<li><a href="data.php">Data</a></li>
	<li><a href="users.php">Users</a></li>
	<li><a href="settings.php">Settings</a></li>
	<li><a href="logout.php">Logout</a></li>
</ul>
</div>

<div id="content">
<div class="left"> 

<h2><a href="#">It's a Prof's Life</a></h2>
Donec nulla. Aenean eu augue ac nisl tincidunt rutrum. Proin erat justo, pharetra eget, posuere at, malesuada 
et, nulla. Donec pretium nibh sed est faucibus suscipit. Nunc nisi. Nullam vehicula. In ipsum lorem, bibendum sed, 
consectetuer et, gravida id, erat. Ut imperdiet, leo vel condimentum faucibus, risus justo feugiat purus, vitae 
congue nulla diam non urna.
</div>


<div style="clear: both;"> </div>

</div>

<div id="bottom"> </div>
<div id="footer">
Designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>, Thanks to <a href="http://www.openwebdesign.org/">web design company</a>
</div>

</div>
<?php
		
	}
	else{
	?>
	<link rel="stylesheet" type="text/css" href="style.css" />
<div id="wrap">

<div id="header">
<h1><a href="#">IAPL</a></h1>
<h2>It`s A Prof`s Life</h2>
</div>

<div id="menu">

</div>

<div id="content">
<div class="left"> 

<h2><a href="#">Login</a></h2>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
		<tr>
		<form name="form1" method="post" action="check_login.php">
		<td>
		<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
	
		<tr>
		<td width="78">Username</td>
		<td width="6">:</td>
		<td width="294"><input name="user" type="text" id="user"></td>
		<td>Password</td>
		<td>:</td>
		<td><input name="pass" type="text" id="pass"></td>
		<td><input type="submit" name="Submit" value="Login"></td>
		</tr>
		</table>
		</td>
		</form>
		</tr>
		</table>
</div>


<div style="clear: both;"> </div>

</div>

<div id="bottom"> </div>
<div id="footer">
Designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>, Thanks to <a href="http://www.openwebdesign.org/">web design company</a>
</div>

</div>
		
	<?php
	}
?>
